#!/usr/local/env python3
'''
Author:@南非波波
Blog:http://www.cnblogs.com/songqingbo/
E-mail:qingbo.song@gmail.com
'''

request_file = 'main_online.txt'
main_file = 'main1.txt'
all_file = 'all.txt'
request_set = set()
main_set = set()
all_set = set()
# with open(request_file,'r') as request:
#     res = request.readlines()
#     for line in res:
#         if len(line) != 0 and line != '\n':
#             request_set.add(line.strip('\n'))
# # print("request_set:",request_set)

with open(request_file,'r') as request:
    res = request.readlines()
    for line in res:
        if len(line) != 0 and line != '\n':
            line = line.strip("\n").split(":")[0].strip("\"").strip("'")
            request_set.add(line)
with open(main_file,'r') as main:
    res = main.readlines()
    for line in res:
        if len(line) != 0 and line != '\n':
            line = line.strip("\n").split(":")[0].strip("\"").strip("'")
            main_set.add(line)

with open(all_file,'r') as all:
    res = all.readlines()
    for line in res:
        if len(line) != 0 and line != '\n':
            line = line.strip("\n")
            all_set.add(line)
# print(all_set)
# print("main_set:",main_set)
# print("=================================")
# print("两者共同拥有元素：",main_set.intersection(request_set))
# print("=================================")
# print("main集合与request差集:",main_set.symmetric_difference(request_set))
# print(len(main_set.symmetric_difference(request_set)))
# print("=================================")
# print("main-request:",main_set - request_set)
# print(len(main_set - request_set))
# print("=================================")
# print("request-main:",request_set -main_set)
# print(len(request_set -main_set))
# print("==================================")
# print("main_online-main:",request_set -main_set)
# print(len(request_set -main_set))

zi_set = request_set -main_set
# print(zi_set)
# print(len(zi_set))
if zi_set.issubset(all_set):
    print("True")
else:
    # print(all_set - zi_set)
    # print(len(all_set - zi_set))
    print(zi_set.intersection(all_set))

if "/getMdStore" in request_set:
    print("True")
else:
    print("False")